<{include file="header.html"}>
<div id="content">
    <div class="container">
        <div class="main-content">
			<h1 class="title">Booking Preview</h1>
            <{if $validBooking == false }>
            <span style="color:red;" >The booking is invalid. please delete or change the bookings are display in red.</span>
            <{/if}>
			<p style="text-align: left;font-weight: bold;text-decoration: underline;"><{$smarty.const._LB_BOOKING_DETAIL_INFO|utf8_escape_html}> : </p>
			<form action="<{$smarty.server.REQUEST_URI}>" enctype='multipart/form-data' method="post" name="user_form">
				<input type="hidden" id="act" name="act" value="<{$smarty.const.ACT_VALID_EDIT}>"/>
				<table width="100%">
					<{foreach from=$booked key=ind item=bookingData}>
					<tr style="font-weight: bold;">
						<td width="100"><{$smarty.const._LB_BOOKING_DATE|utf8_escape_html}>&nbsp;:&nbsp;</td>
						<td>
                            <span <{if $bookingData.valid == 0}> style="color:red;" <{/if}>><{$bookingData.bookingDate|date_format:"%d/%m/%Y %H:%M"}></span>
							<input type="hidden" id="DATE" name="DATE" value="<{$bDATE|date_format:"%d/%m/%Y"}>" />
							<input type="hidden" id="TIME" name="TIME" value="<{$bTIME}>" />
						</td>
						<td style="width:100px;">
							<a href="<{$smarty.const.APPLICATION_URL_FO}>/booking/?sesID=<{$ind}>"><{$smarty.const._LB_ADJUST}></a>
							<a onclick="return confirm('<{$smarty.const._MSG_BOOKING_DELETE_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL_FO}>/booking/preview/?sesID=<{$ind}>&act=<{$smarty.const.ACT_DELETE}>"><{$smarty.const._LB_DELETE}></a>
						</td>
					</tr>
					<tr>
						<td><{$smarty.const._LB_SERVICE|utf8_escape_html}>&nbsp;:&nbsp;</td>
						<td>
							<{foreach from=$bookingData.services item=service}>
							<{$service.TITLE|utf8_escape_html}> (<{$service.TIME|utf8_escape_html}> mins - $<{$service.PRICE|utf8_escape_html}>) <br />
							<input type="hidden" id="SERVICE" name="SERVICE[]" value="<{$services->ID}>" />
							<{/foreach}>
						</td>
						<td></td>
					</tr>
					<{/foreach}>
					<tr>
						<td colspan="3" style="padding-top: 10px;text-align: center">
							<input class="btn" value="<{$smarty.const._LB_BOOK_MORE}>" onclick="javascript:location.href='<{$smarty.const.APPLICATION_URL_FO}>/booking/'" id="btnBookMore" type="button"/>
							<{if $booked|@count > 0 && $validBooking ==true }>
							<input class="btn" value="Submit" id="btnSubmit" type="submit"/>
							<{/if}>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div class="sidebar">
            <{include file="right_business_hours.html"}>
			<{include file="right_service.html"}>
        </div><!--End .sidebar-->
    </div>
</div>

<{include file="footer.html"}>